
   <!-- 当前位置 -->
<div id="urHere">DouPHP 管理中心<b>></b><strong>超级管理员</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3><a href="{:U('/AdminPower/modPower')}" class="actionBtn">添加权限</a>超级管理员</h3>

  <div class="filter">
   <form action="{:U('index')}" method="get">
    <input name="keyword" type="text" class="inpMain" value="{:I('get.keyword')}" placeholder="账户、真实姓名" size="30" />
    <select name="search">
     <option value="">--角色名称--</option>
     <option value="超级管理员" <if condition="I('get.search') eq '超级管理员'"> selected="selected" </if>> 超级管理员 </option>
     <option value="副管理员" <if condition="I('get.search') eq '副管理员'"> selected="selected"</if>> 副管理员 </option>
     <option value="员工" <if condition="I('get.search') eq '员工'"> selected="selected"</if>> 员工 </option>
     <option value=""></option>
    </select>
    <input name="submit" class="btnGray" type="submit" value="筛选" />
   </form>
  </div>

        <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
         <th align="center">用户名</th>
         <th align="center">角色名称</th>
         <th align="center">权限（操作）名称</th>
         <th align="center">请求方法</th>
         <th align="center">操作</th>
     </tr>
         <foreach name="data" item="val">
          <tr>
           <td align="center">{$val['real_name']}</td>
           <td align="center">{$val['role_name']}</td>
           <td align="center">{$val['power_name']}</td>
           <td align="center">{$val['require_url']}</td>
           <td align="center">
             <if condition="$val['id'] eq '1' or $val['id'] eq '2'">
                 <a href="{:U('/AdminInfo/modAdmin', array('id'=>$val['id']))}">编辑</a>
             <else />
                 <a href="{:U('/AdminInfo/modAdmin', array('id'=>$val['id']))}">编辑</a>
                 <a href="javascript:void(0);" class="delAdmin">删除</a>
            </if>
           </td>
          </tr>
         </foreach>
         </table>
       <div class="clear"></div>
       <div class="pager">
           {$show}
       </div>
   </div>
   <script>
       $(function(){
           $('a.delAdmin').click(function(){
               if (confirm('确定要删除？')) {
                   $(this).attr('href',"{:U('delAdmin', array('id'=>$val['id']))}");
               }
           })
       });
   </script>

</body>
</html>